package com.spddr.pmos.oauth2;

public enum PermissionType {
	queryObj(0), //
	editObj(1), createObj(2), destoryObj(3), readData(10), readParams(11), writeParams(12), stats(21);

	public final int value;

	PermissionType(int value) {
		this.value = value;
	}

	public static PermissionType valueOf(int value) {
		for (PermissionType v : values()) {
			if (v.value == value)
				return v;
		}

		return queryObj;
	}
}
